package com.hurr.service.impl;

import java.util.Collection;

import com.hurr.bo.Inversion;
import com.hurr.dao.InversionDao;
import com.hurr.service.InversionService;

/**
 * Implemetation for Inversion Service
 * 
 * @author Fernando Perelli
 * 
 */
public class InversionServiceImpl implements InversionService {

	/**
	 * Dao for inversion
	 */
	private InversionDao inversionDao;

	/**
	 * Set InversionDao
	 * 
	 * @param inversionDao
	 */
	public void setInversionDao(InversionDao inversionDao) {
		this.inversionDao = inversionDao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.InversionService#save(com.hurr.bo.Inversion)
	 */
	@Override
	public Inversion save(Inversion inversion) {
		return inversionDao.save(inversion);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.InversionService#update(com.hurr.bo.Inversion)
	 */
	@Override
	public void update(Inversion inversion) {
		inversionDao.update(inversion);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.InversionService#delete(com.hurr.bo.Inversion)
	 */
	@Override
	public void delete(Inversion Inversion) {
		inversionDao.delete(Inversion);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.InversionService#findById(java.lang.Long)
	 */
	@Override
	public Inversion findById(Long id) {
		return inversionDao.findById(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.InversionService#findAll()
	 */
	@Override
	public Collection<Inversion> findAll() {
		return inversionDao.findAll();
	}

}
